// 自动生成模板CasSuspects
package suspect

import (
	"time"

	"github.com/flipped-aurora/gin-vue-admin/server/global"
	"gorm.io/datatypes"
)

// casSuspects表 结构体  CasSuspects
type CasSuspects struct {
	global.GVA_MODEL
	CaseId          *int           `json:"caseId" form:"caseId" gorm:"column:case_id;comment:cas_cases.id;size:19;"`
	CaseName        *string        `json:"caseName" form:"caseName" gorm:"column:case_name;comment:cas_cases.name;size:25;" binding:"required"`                                           //案件名称
	Charge          *string        `json:"charge" form:"charge" gorm:"column:charge;comment:charge;size:25;" binding:"required"`                                                          //罪名
	ApprehendCharge *string        `json:"apprehendCharge" form:"apprehendCharge" gorm:"column:apprehend_charge;comment:apprehend charge 逮捕罪名;size:25;"`                                  //逮捕罪名
	Name            *string        `json:"name" form:"name" gorm:"column:name;comment:姓名;size:25;" binding:"required"`                                                                    //姓名
	Avatar          *string        `json:"avatar" form:"avatar" gorm:"column:avatar;comment:头像;size:120;" binding:"required"`                                                             //头像
	IdNumber        *string        `json:"idNumber" form:"idNumber" gorm:"column:id_number;comment:身份证;size:120;" binding:"required"`                                                     //身份证
	Address         *string        `json:"address" form:"address" gorm:"column:address;comment:地址;size:120;" binding:"required"`                                                          //地址
	Age             *int           `json:"age" form:"age" gorm:"column:age;comment:年纪;size:10;" binding:"required"`                                                                       //年纪
	Nation          *string        `json:"nation" form:"nation" gorm:"column:nation;comment:民族;size:25;" binding:"required"`                                                              //民族
	Culture         *string        `json:"culture" form:"culture" gorm:"column:culture;comment:文化程度;size:25;" binding:"required"`                                                         //文化程度
	TownCode        *string        `json:"townCode" form:"townCode" gorm:"column:town_code;comment:归属乡镇;size:25;" binding:"required"`                                                     //乡镇
	Phone           *string        `json:"phone" form:"phone" gorm:"column:phone;comment:联系电话;size:55;"`                                                                                  //电话
	DetainAt        *time.Time     `json:"detainAt" form:"detainAt" gorm:"column:detain_at;comment:detain_at 拘留;"`                                                                        //拘留时间
	ApprehendAt     *time.Time     `json:"apprehendAt" form:"apprehendAt" gorm:"column:apprehend_at;comment:apprehend_at 逮捕;"`                                                            //逮捕时间
	BailAt          *time.Time     `json:"bailAt" form:"bailAt" gorm:"column:bail_at;comment:bail_at 取保;"`                                                                                //取保时间
	ProsecuteAt     *time.Time     `json:"prosecuteAt" form:"prosecuteAt" gorm:"column:prosecute_at;comment:prosecute_at 起诉;"`                                                            //起诉时间
	ExceedAt        *time.Time     `json:"exceedAt" form:"exceedAt" gorm:"column:exceed_at;comment:exceed_at 超期;"`                                                                        //超期时间
	FOwnerId        *int           `json:"fOwnerId" form:"fOwnerId" gorm:"column:f_owner_id;comment:主办人;size:19;" binding:"required"`                                                     //主办人
	Flag            *int           `json:"flag" form:"flag" gorm:"column:flag;comment:处理类型 二进制;size:19;"`                                                                                 //flag
	State           *string        `json:"state" form:"state" gorm:"column:state;comment:目前状态 escape未归案 detain拘留 apprehend逮捕 bail取保 monitor监视居住 prosecute起诉;size:25;" binding:"required"` //状态
	Attachments     datatypes.JSON `json:"attachments" form:"attachments" gorm:"column:attachments;comment:附件;"swaggertype:"array,object"`                                                //附件
}

// TableName casSuspects表 CasSuspects自定义表名 cas_suspects
func (CasSuspects) TableName() string {
	return "cas_suspects"
}
